document.getElementById('changeColorBtn').addEventListener('click',
function() {

    const randomLightColor = generateRandomLightColor();
    document.querySelector('header').style.backgroundColor =
randomLightColor;
});

document.getElementById('greetBtn').addEventListener('click', function()
{
    alert('欢迎查看我的简历');
});

function generateRandomLightColor() {
    const r = Math.floor(Math.random() * 56) + 200;
    const g = Math.floor(Math.random() * 56) + 200;
    const b = Math.floor(Math.random() * 56) + 200;
    return `rgb(${r}, ${g}, ${b})`;
}